package com.njlime.cms.entities;

import com.njlime.core.base.entities.BaseEntityPlus;
import com.njlime.core.web.validation.RegexType;
import com.njlime.core.web.validation.annotation.Validate;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 直播实体类
 *
 * @since 
 */
@Entity
@Table(name = "t_live")
public class Live extends BaseEntityPlus {
	@Validate(description = "直播名称", nullable = false)
    private String title; // 标题
    private String activity_id; // 活动id
    @Validate(description = "直播开始时间", nullable = false)
    private Date live_start_time; // 直播开始时间
    @Validate(description = "直播结束时间", nullable = false)
    private Date live_end_time; // 直播结束时间
	@Validate(description = "封面图", nullable = false)
    private String surface_plot; // 封面图
	@Validate(description = "简介信息", nullable = false)
    private String abstract_info; // 简介信息
	@Validate(description = "演员", nullable = false)
    private String actor; // 演员
    @Validate(description = "发布位置", nullable = false,regexType= RegexType.NUMBER)
    private Integer position;
    private Integer publish_status; // 状态
    private Integer unit_id; // 单位id
    private Integer root_unit_id; // 根单位ID
    @Validate(description = "标签", nullable = false,regexType= RegexType.NUMBER)
    private Integer label_id; // 标签ID
    @Validate(description = "所属频道", nullable = false,regexType= RegexType.NUMBER)
    private Integer channel_id; // 频道ID
    @Validate(description = "所属栏目", nullable = false,regexType= RegexType.NUMBER)
    private Integer column_id; // 栏目ID
    private Integer reading; // 观看人数
    private Integer comment_num; // 评论数
    private String source_url; // 原文地址
    private String third_url; // 第三方链接
    private String mobiles; // 手机号
    private Integer is_comment; // 评论审核 1是0否


    /**
     * 直播位置
     * OP = 1; 置顶
     * TOP_TWO = 2; 二条
     * TOP_THREE = 3; 三条
     * DEFAULT = 99; 默认
     */
    public static final class LivePosition {
        public static final int TOP = 1; //置顶
        public static final int TOP_TWO = 2; //二条
        public static final int TOP_THREE = 3; //三条
        public static final int DEFAULT = 99; //默认
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(String activity_id) {
        this.activity_id = activity_id;
    }

    public Date getLive_start_time() {
        return live_start_time;
    }

    public void setLive_start_time(Date live_start_time) {
        this.live_start_time = live_start_time;
    }

    public Date getLive_end_time() {
        return live_end_time;
    }

    public void setLive_end_time(Date live_end_time) {
        this.live_end_time = live_end_time;
    }

    public String getSurface_plot() {
        return surface_plot;
    }

    public void setSurface_plot(String surface_plot) {
        this.surface_plot = surface_plot;
    }

    public String getAbstract_info() {
        return abstract_info;
    }

    public void setAbstract_info(String abstract_info) {
        this.abstract_info = abstract_info;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public Integer getPublish_status() {
        return publish_status;
    }

    public void setPublish_status(Integer publish_status) {
        this.publish_status = publish_status;
    }

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public Integer getChannel_id() {
        return channel_id;
    }

    public void setChannel_id(Integer channel_id) {
        this.channel_id = channel_id;
    }

    public Integer getColumn_id() {
        return column_id;
    }

    public void setColumn_id(Integer column_id) {
        this.column_id = column_id;
    }

    public Integer getReading() {
        return reading;
    }

    public void setReading(Integer reading) {
        this.reading = reading;
    }

    public Integer getComment_num() {
        return comment_num;
    }

    public void setComment_num(Integer comment_num) {
        this.comment_num = comment_num;
    }

    public String getSource_url() {
        return source_url;
    }

    public void setSource_url(String source_url) {
        this.source_url = source_url;
    }

    public String getMobiles() {
        return mobiles;
    }

    public void setMobiles(String mobiles) {
        this.mobiles = mobiles;
    }

    public Integer getIs_comment() {
        return is_comment;
    }

    public void setIs_comment(Integer is_comment) {
        this.is_comment = is_comment;
    }

    public Integer getRoot_unit_id() {
        return root_unit_id;
    }

    public void setRoot_unit_id(Integer root_unit_id) {
        this.root_unit_id = root_unit_id;
    }

    public Integer getLabel_id() {
        return label_id;
    }

    public void setLabel_id(Integer label_id) {
        this.label_id = label_id;
    }

    public String getThird_url() {
        return third_url;
    }

    public void setThird_url(String third_url) {
        this.third_url = third_url;
    }

    public Integer getPosition() {
        return position;
    }

    public void setPosition(Integer position) {
        this.position = position;
    }
}